		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">
          	测试APK
          	 <div class="row" >
			  <div class="col-lg-6" style="float: right;margin-top: -30px;">
			    <div class="input-group">
			      <input type="text" class="form-control" placeholder="脚本名称..." id="searchText">
			      <span class="input-group-btn">
			        <button class="btn btn-default" type="button" onclick="project.index.searchTestAPK();">Go!</button>
			      </span>
			    </div><!-- /input-group -->
			  </div><!-- /.col-lg-6 -->
			</div><!-- /.row -->
          </h1>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <!-- <th><input type="checkBox" name="" id=""/></th> -->
                  <th>#ID</th>
                  <th>脚本名称</th>
                  <th>Apk名称</th>
                  <th>创建时间</th>
                  <th>项目操作</th>
                </tr>
              </thead>
              <tbody id="apkTbody">
              <#if apkList??>
              		<#list apkList as aList>
		              	<tr >
		              	 <!--  <td><input type="checkBox" name="${aList.apk_id}" id="${aList.apk_id}" onclick="project.index.initDelScripts(this);"/></td> -->
		                  <td>${aList_index}</td>
		                  <td>${aList.scriptName}</td>
		                   <td>${aList.testApkName}</td>
		                   <#if aList.updateTime??>
		                   		<td>${aList.updateTime}</td>
		                   		<#else>
		                   		<td>${aList.createTime}</td>
		                   </#if>
		                   
		                  <td>
		                  	<div>
		                  	<!-- Button trigger modal -->
							<button type="button" id="${aList.testApkUrl}" class="btn btn-primary" onclick="project.index.downLoadTestAPK(this.id);">
							 	下载
							</button>
							<button type="button" id="${aList.testApkId}" class="btn btn-primary" onclick="project.index.deleteTestApk(this.id);">
							 	 删除
							</button>

		    			  </div>
		    			 </td>
		                </tr>
              		</#list>
              </#if>
              </tbody>
            </table>
          </div>
        </div>
		<div class="pull-right pagination">
		    <ul class="pagination" style="" id='bp-3-element-testapk'></ul>
		</div>	

<!-- 上传APK -->
<div class="modal fade" id="uploadFileModal" tabindex="-1" role="dialog" aria-labelledby="uploadFileLabel" aria-hidden="true" data-backdrop="static">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="uploadFileLabel">上传安装包</h4>
      </div>
      <div class="modal-body">
        <!-- begin -->
        <fieldset>
             <div class="form-group">
                <label class="col-sm-3 control-label">上传APK:</label>
                <div class="col-sm-8">
                	<input class="form-control" type="file" id="apkFile" name="fileInput" accept=".apk">
                </div>
             </div>
             <div class="form-group">
                <label class="col-sm-3 control-label">应用名称：</label>
                <div class="col-sm-8">
                     <input class="form-control" type="text" id="apkName" placeholder="应用名称"/>
                  </div>
               </div>
               <div class="form-group">
                <label class="col-sm-3 control-label">版本号：</label>
                <div class="col-sm-8">
                     <input class="form-control" type="text" id="version" placeholder="版本号"/>
                  </div>
               </div>
               <div class="form-group">
                <label class="col-sm-3 control-label">应用描述：</label>
                <div class="col-sm-8">
                     <input class="form-control" type="text" id="apkDesc" placeholder="应用描述"/>
                  </div>
               </div>
          </fieldset>
        <!-- end -->
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" onclick="file.index.uploadFile();">保存</button>
      </div>
    </div>
  </div>
</div>
<!-- 删除项目 Modal -->
<div class="modal fade" id="delApkModal" tabindex="-1" role="dialog" aria-labelledby="delApkLabel" aria-hidden="true" data-backdrop="static">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="delApkLabel">删除APK信息</h4>
      </div>
      <div class="modal-body">
        	确定删除APK？
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-primary" onclick="project.index.deleteApkById();">删除</button>
      </div>
    </div>
  </div>
</div>
<!-- 发起测试 -->
<div class="modal fade" id="beginToTestScript" tabindex="-1" role="dialog" aria-labelledby="beginToTestLabel" aria-hidden="true" data-backdrop="static">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="beginToTestLabel">发起测试任务</h4>
      </div>
      <div class="modal-body" style="margin-left:70px;">
        <!-- begin -->
        <div class="input-group input-group-lg inputElementDiv">
         <span class="input-group-addon" id="sizing-addon3">测试项目</span>
			 <select class="selectpicker" data-style="btn-info" style="height:46px;width:300px;" id="testScriptOps">
				 <option value="">请选择测试脚本</option>
		      </select>
	     </div>	
        <!-- end -->
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" onclick="project.index.startToScriptTask();">确定</button>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
	project.index.productParams.totalPages = ${totalPages};
</script>